package com.xw.class11;

/**
 * @author XW
 * @data 2023/8/17 17:52
 * @description 一张纸多次对折输出折叠N次后的凹凸顺序
 */
public class Code06_PaperFolding {
    public static void printAllFolds(int N) {
        process(1, N, true);
        System.out.println();
    }

    private static void process(int i, int n, boolean b) {
        if(i > n){
            return;
        }
        process(i+1,n,true);
        System.out.print(b ? "凹 " : "凸 ");
        process(i+1,n,false);
    }

    public static void main(String[] args) {
        printAllFolds(3);
    }
}
